package com.zhe.zheblogmaster.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.StringJoiner;

/**
 * @author WHAOU
 * @date 2021/8/24
 * @email whaou@qq.com
 */

public class SimpleBlogVO implements Serializable {
    private Long blogId;
    private String blogTitle;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createTime;

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getBlogId() {
        return blogId;
    }

    public void setBlogId(Long blogId) {
        this.blogId = blogId;
    }

    public String getBlogTitle() {
        return blogTitle;
    }

    public void setBlogTitle(String blogTitle) {
        this.blogTitle = blogTitle;
    }

    @Override
    public String toString() {
        return new StringJoiner(", ", SimpleBlogVO.class.getSimpleName() + "[", "]")
                .add("blogId=" + blogId)
                .add("blogTitle='" + blogTitle + "'")
                .toString();
    }
}
